package com.seesman.application.maintenance.gui.certificate;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import com.seesman.application.maintenance.common.gui.utilities.ExitListener;
import com.seesman.application.maintenance.common.gui.utilities.FrameDetailsUtil;
import com.seesman.application.maintenance.common.gui.utilities.Panel;
import com.seesman.application.maintenance.common.gui.utilities.WindowUtilities;
import com.seesman.application.maintenance.common.gui.utilities.FrameDetailsUtil.VesselCertificateLabel;

@SuppressWarnings("serial")
public class VesselCertificateFrame extends JFrame {
	
	public VesselCertificateFrame() {		
		WindowUtilities.setNativeLookAndFeel();
		addWindowListener(new ExitListener());

		FrameDetailsUtil details = new FrameDetailsUtil();
		
		final Panel panel = new Panel(details.getMapVesselCertificateLabel(), VesselCertificateLabel.class);
		
		getContentPane().add(panel, BorderLayout.CENTER);		
	    pack();		
	    setSize(330, 370);
	    setResizable(false);	    
		setTitle("Vessel - Certificate");
		setVisible(true);
	}
	
}
